package com.app.micaihu.configure;

import com.app.micaihu.R;

import java.util.HashMap;
import java.util.Map;

/**
 * 一些样式的常量
 * Created by linkai on 2016/7/19.
 */
public class StyleConstant {


    /******************** 所有web样式  start ********************/
    public final static String STYLE_ONE = "<style>" ;
//			"* {font-size:%dpx;line-height:%dpx;color:#464646;} " +
    //			"a {color:#3E62A6;} " +
//			"img {max-width:"+((float)AppSizeUtils.getWidthPixels()*6f)/10f+"px;} " +
//			"img {max-width:330px;} " +
    public final static String STYLE_TWO=
            "p {color:#464646;margin-bottom:20px;} "+
            "img{margin:0px 0px 0px 0px;padding:2px;width:100%;} " +
                    "p img{display:block;}"+
                    "p img:before{content:' ';display:table;}"+
//			"pre {font-size:9pt;line-height:12pt;font-family:Courier New,Arial;border:1px solid #ddd;border-left:5px solid #6CE26C;background:#f6f6f6;padding:5px;} " +
//			"a.tag {font-size:15px;text-decoration:none;background-color:#bbd6f3;border-bottom:2px solid #3E6D8E;border-right:2px solid #7F9FB6;color:#284a7b;margin:2px 2px 2px 0;padding:2px 4px;white-space:nowrap;}" +
                    "</style>";

    public final static String STYLE_TWO_GAME=
            "p {color:#666666;margin-bottom:20px;} "+
                    "img{margin:0px 0px 0px 0px;padding:2px;width:100%;} " +
                    "p img{display:block;}"+
                    "p img:before{content:' ';display:table;}"+
//			"pre {font-size:9pt;line-height:12pt;font-family:Courier New,Arial;border:1px solid #ddd;border-left:5px solid #6CE26C;background:#f6f6f6;padding:5px;} " +
//			"a.tag {font-size:15px;text-decoration:none;background-color:#bbd6f3;border-bottom:2px solid #3E6D8E;border-right:2px solid #7F9FB6;color:#284a7b;margin:2px 2px 2px 0;padding:2px 4px;white-space:nowrap;}" +
                    "</style>";
    public final static String STYLE_TWO_NIGHT=
            "p {color:#777777;margin-bottom:20px;} "+
                    "img{margin:0px 0px 0px 0px;padding:2px;width:100%;} " +
                    "p img{display:block;}"+
                    "p img:before{content:' ';display:table;}"+
//			"pre {font-size:9pt;line-height:12pt;font-family:Courier New,Arial;border:1px solid #ddd;border-left:5px solid #6CE26C;background:#f6f6f6;padding:5px;} " +
//			"a.tag {font-size:15px;text-decoration:none;background-color:#bbd6f3;border-bottom:2px solid #3E6D8E;border-right:2px solid #7F9FB6;color:#284a7b;margin:2px 2px 2px 0;padding:2px 4px;white-space:nowrap;}" +
                    "</style>";

//    public final static String WEB_JS = "  <script src=\"file:///android_asset/js/zepto.min.js\"></script>\n<script src=\"file:///android_asset/js/jquery.lazyload.min.js\"></script>";

    public final static String WEB_JS = "<script type=\"text/javascript\"> setTimeout(function () {\n" +
            "        var zepto = document.createElement('script');\n" +
            "        zepto.setAttribute('type', \"text/javascript\");\n" +
            "        zepto.setAttribute('charset', \"utf-8\");\n" +
            "        zepto.setAttribute('src', \"file:///android_asset/js/zepto.min.js\");\n" +
            "        document.body.appendChild(zepto);\n" +
            "        zepto.onload = function () {\n" +
            "            var lazyload = document.createElement('script');\n" +
            "            lazyload.setAttribute('type', \"text/javascript\");\n" +
            "            lazyload.setAttribute('charset', \"utf-8\");\n" +
            "            lazyload.setAttribute('src', \"file:///android_asset/js/lazyload.js\");\n" +
            "            document.body.appendChild(lazyload);\n" +
            "        };\n" +
            "    }, 40);\n" +
            "</script>\n";

    public final static String WEB_STYLE_DAY_ONE = "<html><head><meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">";

    public final static String WEB_STYLE_DAY_TWO =  "</head><body style='margin:0px;background:#fafafa;padding:14px;'><div id=\"tempdiv\">";
    public final static String WEB_STYLE_DAY_TWO_GAME =  "</head><body style='margin:0px;background:#ffffff;padding:14px;'><div id=\"tempdiv\">";

    public final static String WEB_STYLE_NIGHT_TWO =  "</head><body style='margin:0px;background:#252525;padding:14px;'><div id=\"tempdiv\">";
    public final static String WEB_STYLE_NIGHT_TWO_GAME =  "</head><body style='margin:0px;background:#252525;padding:14px;'><div id=\"tempdiv\">";
//    public final static String FOOT = "<script type=\"text/javascript\" charset=\"utf-8\">$(function() {$(\"img.lazy\").lazyload({effect: \"show\", threshold : 200});});</script></body></html>";
    public final static String FOOT = WEB_JS+"</div></body></html>";
//public final static String FOOT = "</body></html>";
//    <iframe frameborder="0" width="640" height="498" src="https://v.qq.com/iframe/player.html?vid=s0344i6nww1&tiny=0&auto=0" allowfullscreen></iframe>
//    <embed src="https://v.qq.com/iframe/player.html?vid=s0344i6nww1&tiny=0&auto=0" widht=400 height=200 autostart=true/false loop=true/false></embed>

    /******************** 所有web样式  end ********************/

    /******************默认的表情配置 start *****************/

    public static Map<String,Integer> piclist1_res(){
        Map<String,Integer> list = new HashMap<String,Integer>();
        list.put("[mc_001]", R.drawable.mc_001);
        list.put("[mc_002]", R.drawable.mc_002);
        list.put("[mc_003]", R.drawable.mc_003);
        list.put("[mc_004]", R.drawable.mc_004);
        list.put("[mc_005]", R.drawable.mc_005);
        list.put("[mc_006]", R.drawable.mc_006);
        list.put("[mc_007]", R.drawable.mc_007);
        list.put("[mc_008]", R.drawable.mc_008);
        list.put("[mc_009]", R.drawable.mc_009);
        list.put("[mc_010]", R.drawable.mc_010);
        return list;
    }

    public static Map<String,String> piclist1_names(){
        Map<String,String> list = new HashMap<String,String>();
        list.put("[mc_001]", "擦汗");
        list.put("[mc_002]", "大哭");
        list.put("[mc_003]", "点赞");
        list.put("[mc_004]", "发呆");
        list.put("[mc_005]", "奋斗");
        list.put("[mc_006]", "鼓掌");
        list.put("[mc_007]", "害羞");
        list.put("[mc_008]", "敬礼");
        list.put("[mc_009]", "可爱");
        list.put("[mc_010]", "抠鼻");
        return list;
    }

    public static Map<String,Integer> piclist2_res(){
        Map<String,Integer> list = new HashMap<String,Integer>();
        list.put("[mc_011]", R.drawable.mc_011);
        list.put("[mc_012]", R.drawable.mc_012);
        list.put("[mc_013]", R.drawable.mc_013);
        list.put("[mc_014]", R.drawable.mc_014);
        list.put("[mc_015]", R.drawable.mc_015);
        list.put("[mc_016]", R.drawable.mc_016);
        list.put("[mc_017]", R.drawable.mc_017);
        list.put("[mc_018]", R.drawable.mc_018);
        list.put("[mc_019]", R.drawable.mc_019);
        list.put("[mc_020]", R.drawable.mc_020);
        return list;
    }

    public static Map<String,String> piclist2_names(){
        Map<String,String> list = new HashMap<String,String>();
        list.put("[mc_011]", "快哭了");
        list.put("[mc_012]", "难过");
        list.put("[mc_013]", "大怒");
        list.put("[mc_014]", "奸笑");
        list.put("[mc_015]", "撇嘴");
        list.put("[mc_016]", "偷笑");
        list.put("[mc_017]", "委屈");
        list.put("[mc_018]", "晕");
        list.put("[mc_019]", "再见");
        list.put("[mc_020]", "呲牙");
        return list;
    }

    /******************默认的表情配置 end *****************/






}
